﻿package emusic.api.adapters 
{
	import emusic.api.data.SummaryData;
	/**
	 * ...
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	public class SummaryAdapter
	{
		public static function digestSummary(summary:XML):SummaryData
		{
			var data:SummaryData = new SummaryData();
			data.id = parseInt(summary.@id);
			data.name = summary.@name;
			data.siteUrl = summary.@url;

			return data;
		}
	}
}